﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/main.Master" CodeBehind="repAlumnos.aspx.vb" Inherits="Notas.repAlumnos" Theme="General" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0" class="style1">
        <tr>
            <td style="text-align:center" colspan="3">
                <h2>Listado de alumnos</h2>
            </td>
        </tr>
        <tr>
            <td width="40%">
                &nbsp;</td>
            <td>
                <table cellpadding="0" class="style1">
                    <tr>
                        <td>
                            <asp:Panel ID="Panel1" runat="server" GroupingText="Filtros">
                                <table cellpadding="0" class="style1">
                                    <tr>
                                        <td style="text-align: right">
                                            DNI:</td>
                                        <td>
                                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="text-align: center">
                                            <asp:Button ID="btnBuscar" runat="server" Text="Buscar" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:GridView ID="Grilla" runat="server" AllowPaging="True" AllowSorting="True" 
                                AutoGenerateColumns="False" CellPadding="4" DataKeyNames="DNI" 
                                DataSourceID="SqlDataSource1" EnableModelValidation="True" ForeColor="#333333" 
                                GridLines="None">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    <asp:CommandField ShowSelectButton="True" />
                                    <asp:BoundField DataField="DNI" HeaderText="DNI" ReadOnly="True" 
                                        SortExpression="DNI" />
                                    <asp:BoundField DataField="Apellidos" HeaderText="Apellidos" 
                                        SortExpression="Apellidos" />
                                    <asp:BoundField DataField="Nombres" HeaderText="Nombres" 
                                        SortExpression="Nombres" />
                                    <asp:BoundField DataField="Sexo" HeaderText="Sexo" SortExpression="Sexo" />
                                    <asp:BoundField DataField="FechaNac" HeaderText="FechaNac" 
                                        SortExpression="FechaNac" />
                                    <asp:BoundField DataField="Nacionalidad" HeaderText="Nacionalidad" 
                                        SortExpression="Nacionalidad" />
                                    <asp:BoundField DataField="Domicilio" HeaderText="Domicilio" 
                                        SortExpression="Domicilio" />
                                    <asp:BoundField DataField="Localidad" HeaderText="Localidad" 
                                        SortExpression="Localidad" />
                                    <asp:BoundField DataField="Pais" HeaderText="Pais" SortExpression="Pais" />
                                    <asp:BoundField DataField="Telefono" HeaderText="Telefono" 
                                        SortExpression="Telefono" />
                                    <asp:BoundField DataField="EMail" HeaderText="EMail" SortExpression="EMail" />
                                </Columns>
                                <EditRowStyle BackColor="#2461BF" />
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EFF3FB" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            </asp:GridView>
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:NotasConnectionString %>" 
                                SelectCommand="SELECT * FROM [Alumnos]"></asp:SqlDataSource>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
            <td width="40%">
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3" style="text-align: center">
                <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Text="Label"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>
